#! /usr/bin/env bash
#
set -e

exec /usr/bin/bwrap --dev-bind / / \
    --bind /opt/weixin-uos/crap/uos-release /etc/os-release \
    --bind /opt/weixin-uos/crap/uos-lsb /etc/lsb-release \
    --bind /opt/weixin-uos/crap/usr/lib/license/ /usr/lib/license \
    --bind /opt/weixin-uos/crap/var/ /var \
    /opt/weixin-uos/weixin.sh "$@"
